home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business & Presentations
/
Business and Presentations - Volume 1 (1995)(Sideface)(NL).iso
/
drivers
/
dvialw
/
dviman
< prev
Wrap
Text File
|
1989-05-31
|
39KB
|
973 lines
DVIxxx --- TeX DVI to device xxx translator family
File: dviman Node: synopsis, Prev: name, Up: top, Next: description
SYNOPSIS
========
dvixxx [-a] [-b] [-c#] [-d#] [-eVAR=value] [-ffontsubfile]
[-l] [-m#] [-o#] [-o#:#] [-o#:#:#] [-p] [-q] [-r#] [-s#] [-v]
[-x#units] [-y#units] [-z] dvifile1 [ dvifile2] ...
xxx = output device identifier suffix (see below)
File: dviman Node: description, Prev: synopsis, Up: top, Next: devices-supported
DESCRIPTION
===========
Several TeX DVI translators are available. They all expect the
name of the DVI file on the command line, and the extension
`.dvi' can always be omitted. As illustrated below, they issue a
one-line identifier message and, if no command line arguments are
given, type a Unix-style usage message. Some of them may have
additional help files. On case-sensitive file systems, file
names may be expected to be entirely in lower case, so you should
type `dvialw' instead of `DVIALW'.
For all except DVIBIT (which is intended for interactive
display), the output file will be given the name of the
`.dvi' file, but extension `.dvi-xxx', where `xxx'
is the three-character mnemonic for the translator program. If
long extensions are not supported, then `.xxx' is used. For
DVIBIT, output is on `stdout' which defaults to the
terminal; it may be redirected in the usual Unix fashion by
`>filename' on the command line (e.g. `dvibit foo
>foo.out').
As each `.dvi' file is processed, a list of errors is printed on
the standard error unit `stderr'; this list is also saved in a
file with extension `.dvi-err', or if long extensions are not
supported by the host, then extension `.err' is used. This file
is not created if there are no errors. As each page is printed,
the physical page number and the TeX page number(s) are printed
without a following carriage return; after the last page, the
string `[OK]' is printed, followed by a carriage return. This
gives a convenient progress report to the terminal. If it is not
wanted, then the error output can be redirected into a file
(possibly the null device) (e.g. `dvixxx foo &foo.err'), or the
-q option can be given to suppress it.
These drivers are written in C, and with C preprocessor
conditional compilation features, are all derived from one
master set of files, so that there is substantial code
sharing among them. Host machine and output device
dependencies are parametrized to allow easy movement to new
hosts and new output devices. Implementations now exist on
Gould UNIX, Hewlett-Packard UNIX, PC DOS, TOPS-20, VAX UNIX,
and VAX VMS, with others in progress.
File: dviman Node: devices-supported, Prev: description, Up: top, Next: options
DEVICES SUPPORTED
=================
The available translators are as follows:
DVIALW
PostScript (Apple LaserWriter)
DVIBIT
Version 3.10 BBN BitGraph terminal
DVICAN
Canon LBP-8 A2 laser printer
DVIGD
Golden Dawn Golden Laser 100 printer
DVIIMP
Imagen imPRESS-language laser printer family
DVIJEP
Hewlett-Packard Laser Jet Plus
DVIJET
Hewlett-Packard Laser Jet
DVIL3P
DEC LN03 Plus laser printer
DVIL75
DEC LA75 144 dpi printer
DVIM72
Apple Imagewriter 72 dpi printer
DVIMAC
Apple Imagewriter 144 dpi printer
DVIMPI
MPI Sprinter 72 dpi printer
DVIO72
OKIDATA Pacemark 2410 72 dpi printer
DVIOKI
OKIDATA Pacemark 2410 144 dpi printer
DVIPRX
Printronix 60h x 72v dpi printer
DVITOS
Toshiba P-1351 180 dpi printer
DVITYP or DVITYPE
DVI Translator for human-readable output
File: dviman Node: options, Prev: devices-supported, Up: top, Next: sample-execution
OPTIONS
=======
The order of command options and DVI file names is not
significant; all switch values apply to all DVI files. DVI files
are processed in order from left to right.
Letter case is ignored in option switches: -A and -a are
equivalent.
-a
Implement virtual font caching, if possible. When a font
file is opened, a buffer is allocated to contain the entire
file, and the file is then read with one system call. This
is important primarily on networked file systems, where the
many random-access calls in the font file for small amounts
of data entail substantial network overhead. With the
entire file cached in local memory, this overhead is
removed. The additional memory required for the font file
buffers amounts to 100K to 200K bytes (assuming the compact
.PK font file format), which is not excessive. If memory
cannot be allocated for a font file, then normal buffering
of small blocks is used. A trace option (-d64) is provided
to monitor the font caching; see below.
-b
Backwards order printing from the default. For example,
laser printers using the Canon engine print normally receive
pages in reverse order because they stack printed side up.
Some have page handling mechanisms that stack them face
down, and in such a case -b will ensure that they come out
in order 1, 2, ... instead of n, n-1, n-2, ...
-c#
Print # copies of each output page. Page copies are printed
consecutively; this does not give multiple collated copies
of the entire job.
-d#
Produce debugging output on `stderr' if a non-zero value is
given. Multiple -d switches may be specified, and one may
also add values of the following possible options to obtain
the switch value:
1
(DVIJET only) print page bitmap in hexadecimal;
2
display page coordinates and metrics of each output
character, and print each character bitmap in
hexadecimal;
4
(DVIJEP only) display updated page coordinate of each
character after each call to `fixpos()';
8
print filename and open mode of each successful file
opening;
16
print filename and open mode of each unsuccessful
file opening;
32
show discarded off-page text;
64
trace virtual font caching;
128
trace character setting (lots of output).
For example, either -d8 -d16 or -d24 will trace all
attempted file openings.
-eVAR=value
Define an environment variable on the command line (see the
later section Environment Variables). The acceptable values
for `VAR' are `DVIHELP', `FONTLIST', `TEXFONTS', and
`TEXINPUTS'. Under normal use of the translators, these can
be set by TOPS-20 and VAX VMS `define VAR: value' commands,
or by Unix `csh' `setenv VAR value' or `sh' `VAR=value'
commands. When the translator is invoked by another
program, such as a print spooler, on some systems it may not
be possible to set a particular value of an environment
variable for the subprocess, so this option gets around this
limitation. On most Unix systems, it should be possible to
use the call `system("VAR=value; dvixxx filename")'.
-ffontsubfile
Define an alternate font substitution file which is to be
used instead of the default ones (see below).
-l
Inhibit logging.
-m#
Reset magnification to #. The default for low resolution
printers is -m603, corresponding to 1/1.2**5 magnification
of 300-dot/inch fonts. By TeX conventions, magnification
1000 corresponds to a 200-dot/inch output device. The
default magnification is always adjusted according to the
output device resolution in order to give a normal page
size, so this parameter should rarely be required. Legal
values are int((1000 or 1440 or 1500) x 1.2**{k/2}) (k =
-16...16); other values will be set to the nearest in this
family. Not all fonts will be available in